import axios from './index';

export function queryList(payload) {
    return axios.get('/candidate/list', {
        params: payload
    });
}

export function queryInfo(candidateID) {
    return axios.get('/candidate/info', {
        params: {
            candidateID
        }
    });
}

//=>Create Contact
export function createCandidate(payload) {
    return axios.post('/candidate/create', payload);
}